<?php $this->load->view($config['site_template'].'/head');?>
<style type="text/css">
    .table>tbody>tr>td{
        border:2px solid #e7eaec;
    }
</style>
<body class="gray-bg">

    <div class="wrapper wrapper-content animated fadeInUp">
        <div class="row">
            <div class="col-sm-12">

                <div class="ibox">
                    <div class="ibox-title">
                        <h1 style="text-align: center">贵州智慧巡检-巡检大屏</h1>

<!--                        <div class="ibox-tools">-->
<!--                            <a href="projects.html" class="btn btn-primary btn-xs">创建新项目</a>-->
<!--                        </div>-->
                    </div>
                    <div class="ibox-content">
                        <div class="row m-b-sm m-t-sm">
                            <div class="col-md-1">
                                <button type="button" id="loading-example-btn" class="btn btn-white btn-sm"><i class="fa fa-refresh"></i> 刷新</button>
                            </div>
                            <div class="col-md-11">
                                <div class="form-inline">
                                    <!--                                    <input type="text" placeholder="请输入异常问题描述" class="input-sm form-control"> -->
                                    <select class="input-sm form-control" id="productLineSerach" data-style="btn-primary" data-width="40%" title="请选择生产线名称">
                                        <option data-hidden="true" value="" disable>---请选择生产线名称---</option>
                                        <?php foreach ($lineData as $value):?>
                                            <option value="<?=$value['lineId']?>" <?= ($value['lineId'] === $productLine) ? "selected" : ""?>><?=$value['lineName']?></option>
                                        <?php endforeach;?>
                                    </select>
<!--                                    <select class="input-sm form-control" id="classesSearch" data-style="btn-primary" data-width="40%" title="请选择班次">-->
<!--                                        <option data-hidden="true" value="" disable>---请选择班次---</option>-->
<!--                                        --><?php //foreach ($classesData as $value):?>
<!--                                            <option value="--><?//=$value['val']?><!--" --><?php //($value['val'] === $classes) ? "selected" : ""?><!-- >-->
<!--                                                --><?//=$value['valName']?>
<!--                                            </option>-->
<!--                                        --><?php //endforeach;?>
<!--                                    </select>-->
                                    <!--                                    <span class="input-group-btn form-control">-->
                                    <button type="button" id="serachBtn" class="btn btn-sm btn-primary"> 搜索</button>
                                    <!--                                    </span>-->
                                </div>
                            </div>
                        </div>
                        <div>

                            <table class="table">
                                <tbody>

                                <tr>
                                    <td>
<!--                                        <button type="button" class="btn btn-danger m-r-sm">12</button>-->
                                        <span class="font-bold" style="font-size: 28px">一配</span>
                                    </td>
                                    <td>
                                        <span class="font-bold" style="font-size: 28px">一烧</span>
                                    </td>
                                    <td>
                                        <span class="font-bold" style="font-size: 28px">破碎</span>
                                    </td>
                                    <td>
                                        <span class="font-bold" style="font-size: 28px">湿法</span>
                                    </td>
                                    <td>
                                        <span class="font-bold" style="font-size: 28px">二配</span>
                                    </td>
                                    <td>
                                        <span class="font-bold" style="font-size: 28px">二烧</span>
                                    </td>
                                    <td>
                                        <span class="font-bold" style="font-size: 28px">包装</span>
                                    </td>

                                </tr>
<!--                                <tr>-->
<!--                                    <td>-->
<!--                                        <button type="button" class="btn btn---><?//= $yipei['ldtyt'] === 0 ? "danger" : "info" ?><!-- m-r-sm">--><?//=$yipei['ldtyt']?><!--</button>-->
<!--                                        <span class="font-bold">投料间露点推移图</span>-->
<!--                                    </td>-->
<!--                                </tr>-->
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['gjdjb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['gjdjb']?></button>
                                        <span class="font-bold">工具点检表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $yishao['sbyjdjb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yishao['sbyjdjb']?></button>
                                        <span class="font-bold">设备一级点检表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $posui['sbyjdjbdanj1f'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$posui['sbyjdjbdanj1f']?></button>
                                        <span class="font-bold">设备一级点检表(单晶线1楼)</span>
                                    </td>

                                </tr>
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['hjctjlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['hjctjlb']?></button>
                                        <span class="font-bold">环境除铁记录表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $yishao['sbejdjb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yishao['sbejdjb']?></button>
                                        <span class="font-bold">设备二级点检表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $posui['sbyjdjbdanj4f'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$posui['sbyjdjbdanj4f']?></button>
                                        <span class="font-bold">设备一级点检表(单晶线4楼)</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['sbejdjb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['sbejdjb']?></button>
                                        <span class="font-bold">设备二级点检表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $yishao['hjctjlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yishao['hjctjlb']?></button>
                                        <span class="font-bold">环境除铁记录表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $posui['sbejdjb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$posui['sbejdjb']?></button>
                                        <span class="font-bold">设备二级点检表</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['czjzjlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['czjzjlb']?></button>
                                        <span class="font-bold">称重校正记录表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $yishao['sjzbljcb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yishao['sjzbljcb']?></button>
                                        <span class="font-bold">烧结装钵量检查表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $posui['hjctjlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$posui['hjctjlb']?></button>
                                        <span class="font-bold">气流磨清理记录表</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['sbyjdjb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['sbyjdjb']?></button>
                                        <span class="font-bold">设备一级点检表(3F)</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $yishao['ylyhljcjlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yishao['ylyhljcjlb']?></button>
                                        <span class="font-bold">窑炉氧含量监测记录表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $posui['ycctqljlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$posui['ycctqljlb']?></button>
                                        <span class="font-bold">永磁除铁清理记录表</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['sbyjdjb2f'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['sbyjdjb2f']?></button>
                                        <span class="font-bold">设备一级点检表(4F)</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $yishao['ylpqkqljlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yishao['ylpqkqljlb']?></button>
                                        <span class="font-bold">窑炉排气口清理记录表</span>
                                    </td>

                                    <td>
                                        <button type="button" class="btn btn-<?= $posui['qlmfsgcczjlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$posui['qlmfsgcczjlb']?></button>
                                        <span class="font-bold">气流磨粉碎过程操作记录表</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['ycctqljlb'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['ycctqljlb']?></button>
                                        <span class="font-bold">永磁除铁清理记录表</span>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['hljwsdtyt'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['hljwsdtyt']?></button>
                                        <span class="font-bold">混料间温湿度推移图(一配)</span>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <button type="button" class="btn btn-<?= $yipei['tljwsdtyt'] === 0 ? "danger" : "info" ?> m-r-sm"><?=$yipei['tljwsdtyt']?></button>
                                        <span class="font-bold">投料间温湿度推移图(投配料)</span>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        $(document).ready(function () {
            $("#loading-example-btn").click(function() {
                btn = $(this);
                // simpleLoad(btn, true);
                // simpleLoad(btn, false)
                var productLineSerach = $("#productLineSerach option:selected").val();
                var classesSearch = $("#classesSearch option:selected").val();
                window.location.href = "<?=base_url('InspectionScreen/showScreen?productLine=')?>" + productLineSerach;
            })
            $("#serachBtn").click(function () {
                var productLineSerach = $("#productLineSerach option:selected").val();
                var classesSearch = $("#classesSearch option:selected").val();
                window.location.href = "<?=base_url('InspectionScreen/showScreen?productLine=')?>" + productLineSerach;
            });
        })
    </script>
</body>

<?php $this->load->view($config['site_template'].'/foot');?>